package com.twotwoshop.domin.category.dtos;

import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class CategoryDto {
    private Long id;
    
    @NotBlank(message = "分类名称不能为空")
    private String name;
    
    private Long parentId;
    
    @NotNull(message = "分类层级不能为空")
    private Integer level;
    
    private Integer sort;
    private Integer status;
}